﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="menuPrincipal.ascx.cs" Inherits="Kcadastro.uctrl.menuPrincipal" %>
<asp:Panel ID="pn_deslogado" runat="server">
<ul class="login">
    <li>
        <asp:Literal ID="lt_msg" runat="server"></asp:Literal></li>
    <%--<li><asp:HyperLink ID="hl_cadastrar" NavigateUrl="~/fuser/cadastroP1.aspx" runat="server">Me Cadastrar</asp:HyperLink></li>--%>
    <li><label>email:</label> 
        <asp:TextBox ID="tblogin_email" Text="" ValidationGroup="login" runat="server"></asp:TextBox></li>
    <li><label>senha:</label><asp:TextBox ID="tblogin_senha" ValidationGroup="login" TextMode="Password" runat="server"></asp:TextBox></li>
    <li>
        <asp:Button ID="bt_entrar" class="botao" ValidationGroup="login" runat="server" Text="Entrar" 
            onclick="bt_entrar_Click" /></li>
    <li><asp:HyperLink ID="hl_lembrar" NavigateUrl="~/fuser/lembrarSenha.aspx" runat="server">Lembrar Senha</asp:HyperLink></li>
</ul>
</asp:Panel>

    <asp:Panel ID="pn_logado" runat="server">
        <asp:Repeater ID="rp_menu" runat="server">
        <HeaderTemplate><div class="login"><ul></HeaderTemplate>
        <ItemTemplate>
        <li>
            <asp:HyperLink ID="hl_menu" NavigateUrl='<%# Eval("urlto") %>' runat="server"><%# Eval("nome") %></asp:HyperLink>
        </li>
        </ItemTemplate>
        <FooterTemplate></ul></FooterTemplate>
        </asp:Repeater>
         <asp:Repeater ID="rp_submenu" runat="server">
        <HeaderTemplate><ul class="login"></HeaderTemplate>
        <ItemTemplate>
        <li>
            <asp:HyperLink ID="hl_menu" NavigateUrl='<%# Eval("urlto") %>' runat="server"><%# Eval("nome") %></asp:HyperLink>
        </li>
        </ItemTemplate>
        <FooterTemplate></ul></div></FooterTemplate>
        </asp:Repeater>
    </asp:Panel>
